/*
 * led.c
 *
 *  Created on: 2023年2月25日
 *      Author: DongDongTian
 */
#include "led.h"
#include "hbird_sdk_soc.h"

void LED_init()
{
		gpio_enable_output(GPIOA, D7);
		gpio_enable_output(GPIOA, D6);
		gpio_enable_output(GPIOA, D5);
		gpio_enable_output(GPIOA, D4);
		gpio_enable_output(GPIOA, D3);
		gpio_enable_output(GPIOA, D2);
		gpio_enable_output(GPIOA, D1);
		gpio_enable_output(GPIOA, D0);
}

void LED_Waterfull()
{
	D7L;
	delay_1ms(500);
	D7M;
	delay_1ms(500);
	D6L;
	delay_1ms(500);
	D6M;
	delay_1ms(500);
	D5L;
	delay_1ms(500);
	D5M;
	delay_1ms(500);
	D4L;
	delay_1ms(500);
	D4M;
	delay_1ms(500);
	D0L;
	delay_1ms(500);
	D0M;
	delay_1ms(500);
	D1L;
	delay_1ms(500);
	D1M;
	delay_1ms(500);
	D2L;
	delay_1ms(500);
	D2M;
	delay_1ms(500);
	D3L;
	delay_1ms(500);
	D3M;
	delay_1ms(500);
}




